package com.asa.tongji;

public class TUtils5 {
	
	/**
	 * 准值眉
	 */
	public static double biaozhunzhi(double[] x){
		
		double a=0;
		double b=0;
		for (int i = 0; i < x.length; i++) {
			a += x[i]*x[i];
		}
		a = a* x.length;
		
		for (int i = 0; i < x.length; i++) {
			b += x[i];
		}
		b = b*b;
		
		
		return Math.sqrt(a-b)/x.length;
	}
	public static void main(String[] args) {
		double[] x = {19.27,23.35,22.75,24.17,23.86,22.66,19.72,23.37};
		
		//System.out.println(biaozhunzhi(x));
		
	}
	
	
	
}
